.class public Les/i20;
.super Ljava/lang/Object;
.source "BluetoothFileSystem2.java"


# static fields
.field private static c:Ljava/text/DateFormat;

.field private static d:Landroid/bluetooth/BluetoothAdapter;

.field private static e:Ljava/util/List;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation
.end field

.field private static f:Z

.field private static g:Lcom/estrongs/bluetooth/parser/a;

.field private static h:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Les/sp0;",
            ">;"
        }
    .end annotation
.end field

.field private static i:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Les/sp0;",
            "Ljava/lang/Object;",
            ">;"
        }
    .end annotation
.end field

.field private static j:Ljava/util/HashMap;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/HashMap<",
            "Ljava/lang/String;",
            "Les/up0;",
            ">;"
        }
    .end annotation
.end field

.field public static final k:Ljava/util/UUID;

.field public static final l:[B

.field private static m:Z

.field private static final n:Landroid/content/BroadcastReceiver;

.field private static final o:Landroid/content/BroadcastReceiver;


# instance fields
.field private final a:Landroid/content/BroadcastReceiver;

.field private b:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 2

    .line 1
    invoke-static {}, Landroid/bluetooth/BluetoothAdapter;->getDefaultAdapter()Landroid/bluetooth/BluetoothAdapter;

    move-result-object v0

    sput-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    .line 2
    new-instance v0, Ljava/util/ArrayList;

    invoke-direct {v0}, Ljava/util/ArrayList;-><init>()V

    sput-object v0, Les/i20;->e:Ljava/util/List;

    const/4 v0, 0x0

    .line 3
    sput-boolean v0, Les/i20;->f:Z

    .line 4
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    sput-object v1, Les/i20;->h:Ljava/util/HashMap;

    .line 5
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    sput-object v1, Les/i20;->i:Ljava/util/HashMap;

    .line 6
    new-instance v1, Ljava/util/HashMap;

    invoke-direct {v1}, Ljava/util/HashMap;-><init>()V

    sput-object v1, Les/i20;->j:Ljava/util/HashMap;

    const-string v1, "00001106-0000-1000-8000-00805F9B34FB"

    .line 7
    invoke-static {v1}, Ljava/util/UUID;->fromString(Ljava/lang/String;)Ljava/util/UUID;

    move-result-object v1

    sput-object v1, Les/i20;->k:Ljava/util/UUID;

    const/16 v1, 0x10

    new-array v1, v1, [B

    .line 8
    fill-array-data v1, :array_0

    sput-object v1, Les/i20;->l:[B

    .line 9
    sput-boolean v0, Les/i20;->m:Z

    .line 10
    new-instance v0, Les/i20$a;

    invoke-direct {v0}, Les/i20$a;-><init>()V

    sput-object v0, Les/i20;->n:Landroid/content/BroadcastReceiver;

    .line 11
    new-instance v0, Les/i20$b;

    invoke-direct {v0}, Les/i20$b;-><init>()V

    sput-object v0, Les/i20;->o:Landroid/content/BroadcastReceiver;

    return-void

    nop

    :array_0
    .array-data 1
        -0x7t
        -0x14t
        0x7bt
        -0x3ct
        -0x6bt
        0x3ct
        0x11t
        -0x2et
        -0x68t
        0x4et
        0x52t
        0x54t
        0x0t
        -0x24t
        -0x62t
        0x9t
    .end array-data
.end method

.method public constructor <init>()V
    .locals 1

    .line 1
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 2
    new-instance v0, Les/i20$c;

    invoke-direct {v0, p0}, Les/i20$c;-><init>(Les/i20;)V

    iput-object v0, p0, Les/i20;->a:Landroid/content/BroadcastReceiver;

    return-void
.end method

.method static synthetic a(Landroid/bluetooth/BluetoothDevice;)Lcom/estrongs/fs/l;
    .locals 0

    .line 4
    invoke-static {p0}, Les/i20;->b(Landroid/bluetooth/BluetoothDevice;)Lcom/estrongs/fs/l;

    move-result-object p0

    return-object p0
.end method

.method static synthetic a(Landroid/content/Context;Landroid/bluetooth/BluetoothDevice;)Ljava/lang/String;
    .locals 0

    .line 3
    invoke-static {p0, p1}, Les/i20;->b(Landroid/content/Context;Landroid/bluetooth/BluetoothDevice;)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method static synthetic a(Les/i20;)Ljava/lang/String;
    .locals 0

    .line 5
    iget-object p0, p0, Les/i20;->b:Ljava/lang/String;

    return-object p0
.end method

.method public static a(Ljava/lang/String;Lcom/estrongs/fs/h;)Ljava/util/List;
    .locals 13
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/lang/String;",
            "Lcom/estrongs/fs/h;",
            ")",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const-string v0, "/"

    .line 22
    sget-object v1, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    const/4 v2, 0x0

    if-eqz v1, :cond_17

    invoke-virtual {v1}, Landroid/bluetooth/BluetoothAdapter;->isEnabled()Z

    move-result v1

    if-nez v1, :cond_0

    goto/16 :goto_6

    .line 23
    :cond_0
    sget-object v1, Les/i20;->g:Lcom/estrongs/bluetooth/parser/a;

    if-nez v1, :cond_1

    .line 24
    new-instance v1, Lcom/estrongs/bluetooth/parser/a;

    invoke-direct {v1}, Lcom/estrongs/bluetooth/parser/a;-><init>()V

    sput-object v1, Les/i20;->g:Lcom/estrongs/bluetooth/parser/a;

    .line 25
    :cond_1
    new-instance v1, Ljava/util/LinkedList;

    invoke-direct {v1}, Ljava/util/LinkedList;-><init>()V

    .line 26
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v3

    .line 27
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 28
    :try_start_0
    sget-object v5, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v5}, Landroid/bluetooth/BluetoothAdapter;->isDiscovering()Z

    move-result v5

    if-eqz v5, :cond_2

    .line 29
    sget-object v5, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v5}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z

    :cond_2
    const/4 v5, 0x1

    .line 30
    invoke-static {p0, v5}, Les/i20;->b(Ljava/lang/String;Z)Les/sp0;

    move-result-object v6

    if-nez v6, :cond_3

    return-object v2

    .line 31
    :cond_3
    invoke-interface {v6}, Les/sp0;->d()Les/tp0;

    move-result-object v7

    .line 32
    sget-object v8, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v8, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v8

    const/16 v9, 0xcb

    invoke-interface {v7, v9, v8}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 33
    invoke-static {v4}, Les/i20;->i(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v4

    const/4 v8, 0x0

    const/4 v10, 0x0

    .line 34
    :goto_0
    array-length v11, v4

    const/16 v12, 0xa0

    if-ge v10, v11, :cond_6

    .line 35
    aget-object v11, v4, v10

    if-eqz v11, :cond_5

    aget-object v11, v4, v10

    invoke-virtual {v11}, Ljava/lang/String;->length()I

    move-result v11

    if-nez v11, :cond_4

    goto :goto_1

    .line 36
    :cond_4
    aget-object v11, v4, v10

    invoke-interface {v7, v5, v11}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 37
    invoke-interface {v6, v7, v8, v8}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v11

    .line 38
    invoke-interface {v11}, Les/tp0;->b()I

    move-result v11

    if-eq v11, v12, :cond_5

    return-object v2

    :cond_5
    :goto_1
    add-int/lit8 v10, v10, 0x1

    goto :goto_0

    .line 39
    :cond_6
    invoke-interface {v6}, Les/sp0;->d()Les/tp0;

    move-result-object v4

    .line 40
    sget-object v5, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v5, v6}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    invoke-interface {v4, v9, v5}, Les/tp0;->a(ILjava/lang/Object;)V

    const/16 v5, 0x42

    const-string v7, "x-obex/folder-listing"

    .line 41
    invoke-interface {v4, v5, v7}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 42
    invoke-interface {v6, v4}, Les/sp0;->c(Les/tp0;)Les/up0;

    move-result-object v5
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_5
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz v5, :cond_14

    .line 43
    :try_start_1
    invoke-interface {v5}, Les/up0;->b()I

    move-result v7

    if-eq v7, v12, :cond_7

    goto/16 :goto_3

    :cond_7
    if-eqz v3, :cond_9

    .line 44
    invoke-virtual {v3}, Les/s80;->z()Z

    move-result v7
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_3
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    if-eqz v7, :cond_9

    if-eqz v5, :cond_8

    .line 45
    :try_start_2
    invoke-interface {v5}, Les/lp0;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    :cond_8
    return-object v2

    .line 46
    :cond_9
    :try_start_3
    invoke-interface {v5}, Les/up0;->f()Les/tp0;

    move-result-object v7

    const/16 v8, 0x49

    .line 47
    invoke-interface {v7, v8}, Les/tp0;->a(I)Ljava/lang/Object;

    move-result-object v7

    if-eqz v7, :cond_a

    .line 48
    invoke-interface {v6, v4}, Les/sp0;->c(Les/tp0;)Les/up0;

    move-result-object v5

    .line 49
    :cond_a
    new-instance v4, Ljava/io/BufferedInputStream;

    .line 50
    invoke-interface {v5}, Les/np0;->e()Ljava/io/DataInputStream;

    move-result-object v6

    const/16 v7, 0x2000

    invoke-direct {v4, v6, v7}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;I)V

    .line 51
    sget-object v6, Les/i20;->g:Lcom/estrongs/bluetooth/parser/a;

    invoke-virtual {v6, v4}, Lcom/estrongs/bluetooth/parser/a;->a(Ljava/io/InputStream;)Ljava/util/ArrayList;

    move-result-object v6

    .line 52
    invoke-virtual {v4}, Ljava/io/BufferedInputStream;->close()V

    .line 53
    invoke-static {}, Lcom/estrongs/android/pop/l;->L1()Lcom/estrongs/android/pop/l;

    move-result-object v4

    invoke-virtual {v4}, Lcom/estrongs/android/pop/l;->u()Ljava/text/DateFormat;

    move-result-object v4

    sput-object v4, Les/i20;->c:Ljava/text/DateFormat;

    if-eqz v6, :cond_12

    .line 54
    invoke-virtual {v6}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v4

    :cond_b
    :goto_2
    invoke-interface {v4}, Ljava/util/Iterator;->hasNext()Z

    move-result v6

    if-eqz v6, :cond_12

    invoke-interface {v4}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v6

    check-cast v6, Lcom/estrongs/bluetooth/parser/OBEXElement;

    if-eqz v3, :cond_d

    .line 55
    invoke-virtual {v3}, Les/s80;->z()Z

    move-result v7
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-eqz v7, :cond_d

    if-eqz v5, :cond_c

    .line 56
    :try_start_4
    invoke-interface {v5}, Les/lp0;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1

    :catch_1
    :cond_c
    return-object v2

    :cond_d
    if-nez v6, :cond_e

    goto :goto_2

    .line 57
    :cond_e
    :try_start_5
    invoke-virtual {p0, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v7

    if-nez v7, :cond_f

    .line 58
    new-instance v7, Ljava/lang/StringBuilder;

    invoke-direct {v7}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v7, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v7}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    .line 59
    :cond_f
    invoke-virtual {v6}, Lcom/estrongs/bluetooth/parser/OBEXElement;->d()Ljava/lang/String;

    move-result-object v7

    .line 60
    invoke-virtual {v6}, Lcom/estrongs/bluetooth/parser/OBEXElement;->d()Ljava/lang/String;

    move-result-object v8

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    if-nez v8, :cond_10

    goto :goto_2

    .line 61
    :cond_10
    invoke-virtual {v6}, Lcom/estrongs/bluetooth/parser/OBEXElement;->h()Z

    move-result v8

    if-eqz v8, :cond_11

    invoke-virtual {v7, v0}, Ljava/lang/String;->endsWith(Ljava/lang/String;)Z

    move-result v8

    if-nez v8, :cond_11

    .line 62
    new-instance v8, Ljava/lang/StringBuilder;

    invoke-direct {v8}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v8, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v8}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    .line 63
    :cond_11
    new-instance v8, Les/j20;

    new-instance v9, Ljava/lang/StringBuilder;

    invoke-direct {v9}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v9, p0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9, v7}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v9}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v7

    invoke-direct {v8, v6, v7}, Les/j20;-><init>(Lcom/estrongs/bluetooth/parser/OBEXElement;Ljava/lang/String;)V

    if-eqz p1, :cond_b

    .line 64
    invoke-interface {p1, v8}, Lcom/estrongs/fs/h;->a(Lcom/estrongs/fs/g;)Z

    move-result v6

    if-eqz v6, :cond_b

    .line 65
    invoke-interface {v1, v8}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_5
    .catch Ljava/io/IOException; {:try_start_5 .. :try_end_5} :catch_3
    .catchall {:try_start_5 .. :try_end_5} :catchall_0

    goto :goto_2

    :cond_12
    if-eqz v5, :cond_13

    .line 66
    :try_start_6
    invoke-interface {v5}, Les/lp0;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_2

    :catch_2
    :cond_13
    return-object v1

    :catchall_0
    move-exception p0

    move-object v2, v5

    goto :goto_5

    :catch_3
    move-exception p0

    move-object v2, v5

    goto :goto_4

    :cond_14
    :goto_3
    if-eqz v5, :cond_15

    :try_start_7
    invoke-interface {v5}, Les/lp0;->close()V
    :try_end_7
    .catch Ljava/io/IOException; {:try_start_7 .. :try_end_7} :catch_4

    :catch_4
    :cond_15
    return-object v2

    :catchall_1
    move-exception p0

    goto :goto_5

    :catch_5
    move-exception p0

    .line 67
    :goto_4
    :try_start_8
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_8
    .catchall {:try_start_8 .. :try_end_8} :catchall_1

    :goto_5
    if-eqz v2, :cond_16

    .line 68
    :try_start_9
    invoke-interface {v2}, Les/lp0;->close()V
    :try_end_9
    .catch Ljava/io/IOException; {:try_start_9 .. :try_end_9} :catch_6

    .line 69
    :catch_6
    :cond_16
    throw p0

    :cond_17
    :goto_6
    return-object v2
.end method

.method private static a(J)V
    .locals 0

    .line 194
    :try_start_0
    invoke-static {p0, p1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :catch_0
    return-void
.end method

.method public static a(Landroid/content/Context;)V
    .locals 2

    .line 181
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->isDiscovering()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 182
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z

    .line 183
    :cond_0
    :try_start_0
    sget-object v0, Les/i20;->n:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v0}, Landroid/content/Context;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception p0

    .line 184
    invoke-virtual {p0}, Ljava/lang/Exception;->printStackTrace()V

    .line 185
    :goto_0
    sget-object p0, Les/i20;->h:Ljava/util/HashMap;

    if-eqz p0, :cond_4

    invoke-virtual {p0}, Ljava/util/HashMap;->size()I

    move-result p0

    if-nez p0, :cond_1

    goto :goto_2

    .line 186
    :cond_1
    sget-object p0, Les/i20;->h:Ljava/util/HashMap;

    invoke-virtual {p0}, Ljava/util/HashMap;->keySet()Ljava/util/Set;

    move-result-object p0

    invoke-interface {p0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object p0

    .line 187
    :cond_2
    :goto_1
    invoke-interface {p0}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 188
    invoke-interface {p0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 189
    sget-object v1, Les/i20;->h:Ljava/util/HashMap;

    invoke-virtual {v1, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Les/sp0;

    if-eqz v0, :cond_2

    const/4 v1, 0x0

    .line 190
    :try_start_1
    invoke-interface {v0, v1}, Les/sp0;->f(Les/tp0;)Les/tp0;

    .line 191
    invoke-interface {v0}, Les/lp0;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1

    goto :goto_1

    :catch_1
    nop

    goto :goto_1

    .line 192
    :cond_3
    sget-object p0, Les/i20;->h:Ljava/util/HashMap;

    invoke-virtual {p0}, Ljava/util/HashMap;->clear()V

    .line 193
    sget-object p0, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {p0}, Ljava/util/HashMap;->clear()V

    :cond_4
    :goto_2
    return-void
.end method

.method public static a(Landroid/content/Context;Ljava/util/ArrayList;)V
    .locals 6
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Landroid/content/Context;",
            "Ljava/util/ArrayList<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    .line 6
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    if-eqz v0, :cond_4

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->isEnabled()Z

    move-result v0

    if-nez v0, :cond_0

    goto/16 :goto_3

    :cond_0
    const/4 v0, 0x0

    .line 7
    :try_start_0
    sget-object v1, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v1}, Landroid/bluetooth/BluetoothAdapter;->getBondedDevices()Ljava/util/Set;

    move-result-object v0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    :goto_0
    if-eqz v0, :cond_4

    .line 8
    invoke-interface {v0}, Ljava/util/Set;->size()I

    move-result v1

    if-lez v1, :cond_4

    .line 9
    invoke-interface {v0}, Ljava/util/Set;->iterator()Ljava/util/Iterator;

    move-result-object v0

    .line 10
    :cond_1
    :goto_1
    invoke-interface {v0}, Ljava/util/Iterator;->hasNext()Z

    move-result v1

    if-eqz v1, :cond_4

    .line 11
    invoke-interface {v0}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Landroid/bluetooth/BluetoothDevice;

    .line 12
    invoke-static {v1}, Les/i20;->c(Landroid/bluetooth/BluetoothDevice;)Z

    move-result v2

    if-nez v2, :cond_2

    goto :goto_1

    .line 13
    :cond_2
    invoke-virtual {v1}, Landroid/bluetooth/BluetoothDevice;->getName()Ljava/lang/String;

    move-result-object v2

    .line 14
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "bt://"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    if-eqz v2, :cond_3

    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v4, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v5, "\n"

    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v4

    goto :goto_2

    :cond_3
    const-string v4, ""

    :goto_2
    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    .line 15
    invoke-virtual {v1}, Landroid/bluetooth/BluetoothDevice;->getAddress()Ljava/lang/String;

    move-result-object v4

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v4, "/"

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 16
    invoke-static {p0, v1}, Les/i20;->b(Landroid/content/Context;Landroid/bluetooth/BluetoothDevice;)Ljava/lang/String;

    move-result-object v4

    .line 17
    new-instance v5, Les/k20;

    invoke-static {v1}, Les/i20;->b(Landroid/bluetooth/BluetoothDevice;)Lcom/estrongs/fs/l;

    move-result-object v1

    invoke-direct {v5, v3, v1, v2, v4}, Les/k20;-><init>(Ljava/lang/String;Lcom/estrongs/fs/l;Ljava/lang/String;Ljava/lang/String;)V

    .line 18
    invoke-virtual {p1, v5}, Ljava/util/ArrayList;->contains(Ljava/lang/Object;)Z

    move-result v1

    if-nez v1, :cond_1

    .line 19
    invoke-virtual {p1, v5}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_1

    :cond_4
    :goto_3
    return-void
.end method

.method public static a(Ljava/util/List;)V
    .locals 3
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "(",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;)V"
        }
    .end annotation

    const/4 v0, 0x0

    .line 20
    :goto_0
    invoke-interface {p0}, Ljava/util/List;->size()I

    move-result v1

    if-ge v0, v1, :cond_0

    .line 21
    invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/estrongs/fs/g;

    invoke-interface {p0, v0}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v2

    check-cast v2, Lcom/estrongs/fs/g;

    invoke-interface {v2}, Lcom/estrongs/fs/g;->d()Ljava/lang/String;

    move-result-object v2

    invoke-static {v2}, Les/i20;->g(Ljava/lang/String;)Lcom/estrongs/fs/l;

    move-result-object v2

    invoke-interface {v1, v2}, Lcom/estrongs/fs/g;->a(Lcom/estrongs/fs/l;)V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_0
    return-void
.end method

.method static synthetic a()Z
    .locals 1

    .line 1
    sget-boolean v0, Les/i20;->f:Z

    return v0
.end method

.method private static a(Landroid/content/Context;Les/sp0;Ljava/lang/String;)Z
    .locals 16
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    move-object/from16 v0, p1

    move-object/from16 v1, p2

    .line 138
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v2

    .line 139
    :try_start_0
    invoke-interface/range {p1 .. p1}, Les/sp0;->d()Les/tp0;

    move-result-object v3

    .line 140
    sget-object v4, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v4, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    const/16 v5, 0xcb

    invoke-interface {v3, v5, v4}, Les/tp0;->a(ILjava/lang/Object;)V

    const/16 v4, 0x42

    const-string v6, "x-obex/folder-listing"

    .line 141
    invoke-interface {v3, v4, v6}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 142
    invoke-static/range {p2 .. p2}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    const/4 v6, 0x1

    .line 143
    invoke-interface {v3, v6, v4}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 144
    invoke-interface {v0, v3}, Les/sp0;->c(Les/tp0;)Les/up0;

    move-result-object v4

    const/4 v7, 0x0

    if-eqz v4, :cond_b

    .line 145
    invoke-interface {v4}, Les/up0;->b()I

    move-result v8

    const/16 v9, 0xa0

    if-eq v8, v9, :cond_0

    goto/16 :goto_3

    .line 146
    :cond_0
    new-instance v8, Ljava/io/BufferedInputStream;

    .line 147
    invoke-interface {v4}, Les/np0;->e()Ljava/io/DataInputStream;

    move-result-object v10

    invoke-direct {v8, v10}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V

    .line 148
    sget-object v10, Les/i20;->g:Lcom/estrongs/bluetooth/parser/a;

    invoke-virtual {v10, v8}, Lcom/estrongs/bluetooth/parser/a;->a(Ljava/io/InputStream;)Ljava/util/ArrayList;

    move-result-object v10

    .line 149
    invoke-virtual {v8}, Ljava/io/BufferedInputStream;->close()V

    .line 150
    invoke-interface {v4}, Les/lp0;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    const-string v4, "bt://"

    const-wide/16 v11, 0x1

    const/4 v8, 0x2

    if-eqz v10, :cond_8

    .line 151
    :try_start_1
    invoke-virtual {v10}, Ljava/util/ArrayList;->size()I

    move-result v13

    if-lez v13, :cond_8

    .line 152
    invoke-virtual {v10}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v10

    :goto_0
    invoke-interface {v10}, Ljava/util/Iterator;->hasNext()Z

    move-result v13

    if-eqz v13, :cond_8

    invoke-interface {v10}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v13

    check-cast v13, Lcom/estrongs/bluetooth/parser/OBEXElement;

    if-eqz v2, :cond_1

    .line 153
    invoke-virtual {v2}, Les/s80;->z()Z

    move-result v14

    if-eqz v14, :cond_1

    return v7

    .line 154
    :cond_1
    invoke-virtual {v13}, Lcom/estrongs/bluetooth/parser/OBEXElement;->d()Ljava/lang/String;

    move-result-object v14

    invoke-static {v14}, Les/i20;->l(Ljava/lang/String;)Z

    move-result v14

    if-eqz v14, :cond_2

    goto :goto_0

    .line 155
    :cond_2
    invoke-static/range {p2 .. p2}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v14

    .line 156
    invoke-interface {v3, v6, v14}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 157
    invoke-interface {v0, v3, v7, v7}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v3

    .line 158
    invoke-interface {v3}, Les/tp0;->b()I

    move-result v3

    if-eq v3, v9, :cond_3

    return v7

    .line 159
    :cond_3
    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13}, Lcom/estrongs/bluetooth/parser/OBEXElement;->d()Ljava/lang/String;

    move-result-object v14

    invoke-virtual {v3, v14}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    .line 160
    invoke-virtual {v13}, Lcom/estrongs/bluetooth/parser/OBEXElement;->h()Z

    move-result v14

    if-eqz v14, :cond_4

    .line 161
    new-instance v13, Ljava/lang/StringBuilder;

    invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v13, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v3, "/"

    invoke-virtual {v13, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    move-object/from16 v14, p0

    .line 162
    invoke-static {v14, v0, v3}, Les/i20;->a(Landroid/content/Context;Les/sp0;Ljava/lang/String;)Z

    move-result v3

    goto :goto_1

    :cond_4
    move-object/from16 v14, p0

    .line 163
    invoke-interface/range {p1 .. p1}, Les/sp0;->d()Les/tp0;

    move-result-object v15

    .line 164
    sget-object v7, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v7, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-interface {v15, v5, v7}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 165
    invoke-virtual {v13}, Lcom/estrongs/bluetooth/parser/OBEXElement;->d()Ljava/lang/String;

    move-result-object v7

    invoke-interface {v15, v6, v7}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 166
    invoke-interface {v0, v15}, Les/sp0;->a(Les/tp0;)Les/tp0;

    move-result-object v7

    .line 167
    invoke-interface {v7}, Les/tp0;->b()I

    move-result v7

    if-ne v7, v9, :cond_6

    if-eqz v2, :cond_5

    new-array v7, v8, [Ljava/lang/Object;

    .line 168
    invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v13

    const/4 v15, 0x0

    aput-object v13, v7, v15

    new-instance v13, Ljava/lang/StringBuilder;

    invoke-direct {v13}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v13, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v13}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    aput-object v3, v7, v6

    invoke-virtual {v2, v6, v7}, Les/s80;->b(I[Ljava/lang/Object;)V

    :cond_5
    const/4 v3, 0x1

    goto :goto_1

    :cond_6
    const/4 v3, 0x0

    .line 169
    :goto_1
    invoke-interface/range {p1 .. p1}, Les/sp0;->d()Les/tp0;

    move-result-object v7

    .line 170
    sget-object v13, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v13, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v13

    invoke-interface {v7, v5, v13}, Les/tp0;->a(ILjava/lang/Object;)V

    const/4 v13, 0x0

    .line 171
    invoke-interface {v0, v7, v6, v13}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    if-nez v3, :cond_7

    return v13

    :cond_7
    move-object v3, v7

    const/4 v7, 0x0

    goto/16 :goto_0

    .line 172
    :cond_8
    invoke-interface/range {p1 .. p1}, Les/sp0;->d()Les/tp0;

    move-result-object v3

    .line 173
    sget-object v7, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v7, v0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-interface {v3, v5, v7}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 174
    invoke-static/range {p2 .. p2}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    .line 175
    invoke-interface {v3, v6, v5}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 176
    invoke-interface {v0, v3}, Les/sp0;->a(Les/tp0;)Les/tp0;

    move-result-object v0

    .line 177
    invoke-interface {v0}, Les/tp0;->b()I

    move-result v0

    if-ne v0, v9, :cond_9

    if-eqz v2, :cond_a

    new-array v0, v8, [Ljava/lang/Object;

    .line 178
    invoke-static {v11, v12}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v3

    const/4 v5, 0x0

    aput-object v3, v0, v5

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    aput-object v1, v0, v6

    invoke-virtual {v2, v6, v0}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_2

    :cond_9
    const/4 v6, 0x0

    :cond_a
    :goto_2
    return v6

    :cond_b
    :goto_3
    const/4 v0, 0x0

    return v0

    :catchall_0
    move-exception v0

    goto :goto_4

    :catch_0
    move-exception v0

    .line 179
    :try_start_2
    new-instance v1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v1, v0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    .line 180
    :goto_4
    goto :goto_6

    :goto_5
    throw v0

    :goto_6
    goto :goto_5
.end method

.method public static a(Landroid/content/Context;Ljava/lang/String;)Z
    .locals 11
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 114
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object v0

    .line 115
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    const/4 v2, 0x1

    .line 116
    :try_start_0
    invoke-static {p1, v2}, Les/i20;->b(Ljava/lang/String;Z)Les/sp0;

    move-result-object v3

    const/4 v4, 0x0

    if-nez v3, :cond_0

    return v4

    .line 117
    :cond_0
    invoke-static {v1}, Les/i20;->i(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v5

    if-eqz v5, :cond_9

    .line 118
    array-length v6, v5

    if-nez v6, :cond_1

    goto/16 :goto_3

    .line 119
    :cond_1
    invoke-interface {v3}, Les/sp0;->d()Les/tp0;

    move-result-object v6

    .line 120
    sget-object v7, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v7, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    const/16 v8, 0xcb

    invoke-interface {v6, v8, v7}, Les/tp0;->a(ILjava/lang/Object;)V

    const/4 v7, 0x0

    .line 121
    :goto_0
    array-length v9, v5

    sub-int/2addr v9, v2

    const/16 v10, 0xa0

    if-ge v7, v9, :cond_4

    .line 122
    aget-object v9, v5, v7

    if-eqz v9, :cond_3

    aget-object v9, v5, v7

    invoke-virtual {v9}, Ljava/lang/String;->length()I

    move-result v9

    if-nez v9, :cond_2

    goto :goto_1

    .line 123
    :cond_2
    aget-object v9, v5, v7

    invoke-interface {v6, v2, v9}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 124
    invoke-interface {v3, v6, v4, v4}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v9

    .line 125
    invoke-interface {v9}, Les/tp0;->b()I

    move-result v9

    if-eq v9, v10, :cond_3

    return v4

    :cond_3
    :goto_1
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    :cond_4
    if-eqz v0, :cond_5

    .line 126
    invoke-virtual {v0}, Les/s80;->z()Z

    move-result v7

    if-eqz v7, :cond_5

    return v4

    .line 127
    :cond_5
    array-length v7, v5

    sub-int/2addr v7, v2

    aget-object v7, v5, v7

    invoke-interface {v6, v2, v7}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 128
    invoke-static {p1}, Les/i20;->k(Ljava/lang/String;)Z

    move-result v6

    if-eqz v6, :cond_6

    .line 129
    invoke-static {p0, v3, v1}, Les/i20;->a(Landroid/content/Context;Les/sp0;Ljava/lang/String;)Z

    move-result v2

    goto :goto_2

    .line 130
    :cond_6
    invoke-interface {v3}, Les/sp0;->d()Les/tp0;

    move-result-object p0

    .line 131
    sget-object v1, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v1, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v1

    invoke-interface {p0, v8, v1}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 132
    array-length v1, v5

    sub-int/2addr v1, v2

    aget-object v1, v5, v1

    invoke-interface {p0, v2, v1}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 133
    invoke-interface {v3, p0}, Les/sp0;->a(Les/tp0;)Les/tp0;

    move-result-object p0

    .line 134
    invoke-interface {p0}, Les/tp0;->b()I

    move-result p0

    if-ne p0, v10, :cond_7

    if-eqz v0, :cond_8

    const/4 p0, 0x2

    new-array p0, p0, [Ljava/lang/Object;

    const-wide/16 v5, 0x1

    .line 135
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v1

    aput-object v1, p0, v4

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "bt://"

    invoke-virtual {v1, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p1

    aput-object p1, p0, v2

    invoke-virtual {v0, v2, p0}, Les/s80;->b(I[Ljava/lang/Object;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    goto :goto_2

    :cond_7
    const/4 v2, 0x0

    :cond_8
    :goto_2
    return v2

    :cond_9
    :goto_3
    return v4

    :catchall_0
    move-exception p0

    goto :goto_4

    :catch_0
    move-exception p0

    .line 136
    :try_start_1
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 137
    :goto_4
    goto :goto_6

    :goto_5
    throw p0

    :goto_6
    goto :goto_5
.end method

.method public static a(Ljava/lang/String;)Z
    .locals 9
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 93
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 94
    :try_start_0
    invoke-static {p0, v1}, Les/i20;->b(Ljava/lang/String;Z)Les/sp0;

    move-result-object v3

    const/4 v4, 0x0

    if-nez v3, :cond_0

    return v4

    .line 95
    :cond_0
    invoke-static {v0}, Les/i20;->i(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_8

    .line 96
    array-length v5, v0

    if-nez v5, :cond_1

    goto :goto_3

    .line 97
    :cond_1
    invoke-interface {v3}, Les/sp0;->d()Les/tp0;

    move-result-object v5

    const/16 v6, 0xcb

    .line 98
    sget-object v7, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v7, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v7

    invoke-interface {v5, v6, v7}, Les/tp0;->a(ILjava/lang/Object;)V

    const/4 v6, 0x0

    .line 99
    :goto_0
    array-length v7, v0

    sub-int/2addr v7, v1

    const/16 v8, 0xa0

    if-ge v6, v7, :cond_4

    .line 100
    aget-object v7, v0, v6

    if-eqz v7, :cond_3

    aget-object v7, v0, v6

    invoke-virtual {v7}, Ljava/lang/String;->length()I

    move-result v7

    if-nez v7, :cond_2

    goto :goto_1

    .line 101
    :cond_2
    aget-object v7, v0, v6

    invoke-interface {v5, v1, v7}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 102
    invoke-interface {v3, v5, v4, v4}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v7

    .line 103
    invoke-interface {v7}, Les/tp0;->b()I

    move-result v7

    if-eq v7, v8, :cond_3

    return v4

    :cond_3
    :goto_1
    add-int/lit8 v6, v6, 0x1

    goto :goto_0

    .line 104
    :cond_4
    array-length v6, v0

    sub-int/2addr v6, v1

    aget-object v0, v0, v6

    invoke-interface {v5, v1, v0}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 105
    invoke-static {p0}, Les/i20;->k(Ljava/lang/String;)Z

    move-result p0

    if-eqz p0, :cond_5

    .line 106
    invoke-interface {v3, v5, v4, v4}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object p0

    .line 107
    invoke-interface {p0}, Les/tp0;->b()I

    move-result p0

    if-ne p0, v8, :cond_6

    goto :goto_2

    .line 108
    :cond_5
    invoke-interface {v3, v5}, Les/sp0;->c(Les/tp0;)Les/up0;

    move-result-object v2

    if-eqz v2, :cond_6

    .line 109
    invoke-interface {v2}, Les/up0;->b()I

    move-result p0
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-ne p0, v8, :cond_6

    goto :goto_2

    :cond_6
    const/4 v1, 0x0

    :goto_2
    if-eqz v2, :cond_7

    .line 110
    :try_start_1
    invoke-interface {v2}, Les/lp0;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_7
    return v1

    :cond_8
    :goto_3
    return v4

    :catchall_0
    move-exception p0

    goto :goto_4

    :catch_1
    move-exception p0

    .line 111
    :try_start_2
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_4
    if-eqz v2, :cond_9

    .line 112
    :try_start_3
    invoke-interface {v2}, Les/lp0;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2

    .line 113
    :catch_2
    :cond_9
    goto :goto_6

    :goto_5
    throw p0

    :goto_6
    goto :goto_5
.end method

.method public static a(Ljava/lang/String;Ljava/lang/String;)Z
    .locals 0

    const/4 p0, 0x0

    return p0
.end method

.method public static a(Ljava/lang/String;Z)Z
    .locals 8
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 70
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    const/4 v2, 0x0

    .line 71
    :try_start_0
    invoke-static {p0, v1}, Les/i20;->b(Ljava/lang/String;Z)Les/sp0;

    move-result-object p0

    const/4 v3, 0x0

    if-nez p0, :cond_0

    return v3

    .line 72
    :cond_0
    invoke-interface {p0}, Les/sp0;->d()Les/tp0;

    move-result-object v4

    const/16 v5, 0xcb

    .line 73
    sget-object v6, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v6, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-interface {v4, v5, v6}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 74
    invoke-static {v0}, Les/i20;->i(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_8

    .line 75
    array-length v5, v0

    if-nez v5, :cond_1

    goto :goto_2

    :cond_1
    const/4 v5, 0x0

    .line 76
    :goto_0
    array-length v6, v0

    sub-int/2addr v6, v1

    const/16 v7, 0xa0

    if-ge v5, v6, :cond_4

    .line 77
    aget-object v6, v0, v5

    if-eqz v6, :cond_3

    aget-object v6, v0, v5

    invoke-virtual {v6}, Ljava/lang/String;->length()I

    move-result v6

    if-nez v6, :cond_2

    goto :goto_1

    .line 78
    :cond_2
    aget-object v6, v0, v5

    invoke-interface {v4, v1, v6}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 79
    invoke-interface {p0, v4, v3, v3}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v6

    .line 80
    invoke-interface {v6}, Les/tp0;->b()I

    move-result v6

    if-eq v6, v7, :cond_3

    return v3

    :cond_3
    :goto_1
    add-int/lit8 v5, v5, 0x1

    goto :goto_0

    .line 81
    :cond_4
    array-length v5, v0

    sub-int/2addr v5, v1

    aget-object v0, v0, v5

    invoke-interface {v4, v1, v0}, Les/tp0;->a(ILjava/lang/Object;)V

    if-eqz p1, :cond_5

    .line 82
    invoke-interface {p0, v4, v3, v1}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object p0

    .line 83
    invoke-interface {p0}, Les/tp0;->b()I

    move-result p0

    if-eq p0, v7, :cond_6

    return v3

    :cond_5
    const/16 p1, 0xc3

    const-wide/16 v5, 0x1

    .line 84
    invoke-static {v5, v6}, Ljava/lang/Long;->valueOf(J)Ljava/lang/Long;

    move-result-object v0

    invoke-interface {v4, p1, v0}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 85
    invoke-interface {p0, v4}, Les/sp0;->e(Les/tp0;)Les/up0;

    move-result-object v2

    .line 86
    invoke-interface {v2}, Les/op0;->g()Ljava/io/DataOutputStream;

    move-result-object p0

    const-string p1, " "

    .line 87
    invoke-virtual {p1}, Ljava/lang/String;->getBytes()[B

    move-result-object p1

    invoke-virtual {p0, p1}, Ljava/io/DataOutputStream;->write([B)V

    .line 88
    invoke-virtual {p0}, Ljava/io/DataOutputStream;->close()V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_1
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_6
    if-eqz v2, :cond_7

    .line 89
    :try_start_1
    invoke-interface {v2}, Les/lp0;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_0

    :catch_0
    :cond_7
    return v1

    :cond_8
    :goto_2
    return v3

    :catchall_0
    move-exception p0

    goto :goto_3

    :catch_1
    move-exception p0

    .line 90
    :try_start_2
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :goto_3
    if-eqz v2, :cond_9

    .line 91
    :try_start_3
    invoke-interface {v2}, Les/lp0;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2

    .line 92
    :catch_2
    :cond_9
    goto :goto_5

    :goto_4
    throw p0

    :goto_5
    goto :goto_4
.end method

.method static synthetic a(Z)Z
    .locals 0

    .line 2
    sput-boolean p0, Les/i20;->f:Z

    return p0
.end method

.method public static b(Ljava/lang/String;)Lcom/estrongs/fs/e;
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 44
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x0

    const/4 v2, 0x1

    .line 45
    :try_start_0
    invoke-static {p0, v2}, Les/i20;->b(Ljava/lang/String;Z)Les/sp0;

    move-result-object v3

    if-nez v3, :cond_0

    return-object v1

    .line 46
    :cond_0
    invoke-static {p0}, Les/i20;->k(Ljava/lang/String;)Z

    move-result v4

    const/4 v5, 0x0

    if-eqz v4, :cond_7

    .line 47
    invoke-static {v0}, Les/i20;->i(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    .line 48
    invoke-interface {v3}, Les/sp0;->d()Les/tp0;

    move-result-object v4

    .line 49
    sget-object v6, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v6, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    const/16 v7, 0xcb

    invoke-interface {v4, v7, v6}, Les/tp0;->a(ILjava/lang/Object;)V

    const/4 v6, 0x0

    .line 50
    :goto_0
    array-length v8, v0

    const/16 v9, 0xa0

    if-ge v6, v8, :cond_3

    .line 51
    aget-object v8, v0, v6

    if-eqz v8, :cond_2

    aget-object v8, v0, v6

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    if-nez v8, :cond_1

    goto :goto_1

    .line 52
    :cond_1
    aget-object v8, v0, v6

    invoke-interface {v4, v2, v8}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 53
    invoke-interface {v3, v4, v5, v5}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v8

    .line 54
    invoke-interface {v8}, Les/tp0;->b()I

    move-result v8

    if-eq v8, v9, :cond_2

    return-object v1

    :cond_2
    :goto_1
    add-int/lit8 v6, v6, 0x1

    goto :goto_0

    .line 55
    :cond_3
    invoke-interface {v3}, Les/sp0;->d()Les/tp0;

    move-result-object v0

    .line 56
    sget-object v4, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v4, v3}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    invoke-interface {v0, v7, v4}, Les/tp0;->a(ILjava/lang/Object;)V

    const/16 v4, 0x42

    const-string v6, "x-obex/folder-listing"

    .line 57
    invoke-interface {v0, v4, v6}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 58
    invoke-interface {v3, v0}, Les/sp0;->c(Les/tp0;)Les/up0;

    move-result-object v0
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    if-eqz v0, :cond_5

    .line 59
    :try_start_1
    invoke-interface {v0}, Les/up0;->b()I

    move-result v3

    if-eq v3, v9, :cond_4

    goto :goto_2

    .line 60
    :cond_4
    new-instance v1, Ljava/io/BufferedInputStream;

    .line 61
    invoke-interface {v0}, Les/np0;->e()Ljava/io/DataInputStream;

    move-result-object v3

    invoke-direct {v1, v3}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V

    .line 62
    sget-object v3, Les/i20;->g:Lcom/estrongs/bluetooth/parser/a;

    invoke-virtual {v3, v1}, Lcom/estrongs/bluetooth/parser/a;->a(Ljava/io/InputStream;)Ljava/util/ArrayList;

    move-result-object v3

    .line 63
    invoke-virtual {v1}, Ljava/io/BufferedInputStream;->close()V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    move-object v1, v3

    goto :goto_3

    :cond_5
    :goto_2
    if-eqz v0, :cond_6

    .line 64
    :try_start_2
    invoke-interface {v0}, Les/lp0;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    :cond_6
    return-object v1

    :cond_7
    move-object v0, v1

    .line 65
    :goto_3
    :try_start_3
    new-instance v3, Lcom/estrongs/fs/e;

    invoke-direct {v3, p0}, Lcom/estrongs/fs/e;-><init>(Ljava/lang/String;)V

    if-eqz v1, :cond_9

    .line 66
    iput-boolean v2, v3, Lcom/estrongs/fs/e;->c:Z

    .line 67
    invoke-virtual {v1}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_4
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_a

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/bluetooth/parser/OBEXElement;

    .line 68
    invoke-virtual {v4}, Lcom/estrongs/bluetooth/parser/OBEXElement;->h()Z

    move-result v4

    if-eqz v4, :cond_8

    .line 69
    iget v4, v3, Lcom/estrongs/fs/e;->e:I

    add-int/2addr v4, v2

    iput v4, v3, Lcom/estrongs/fs/e;->e:I

    goto :goto_4

    .line 70
    :cond_8
    iget v4, v3, Lcom/estrongs/fs/e;->f:I

    add-int/2addr v4, v2

    iput v4, v3, Lcom/estrongs/fs/e;->f:I

    goto :goto_4

    :cond_9
    const-string v1, "File"

    .line 71
    iput-object v1, v3, Lcom/estrongs/fs/e;->b:Ljava/lang/String;

    .line 72
    invoke-static {p0}, Les/i20;->d(Ljava/lang/String;)J

    move-result-wide v6

    iput-wide v6, v3, Lcom/estrongs/fs/e;->d:J

    .line 73
    :cond_a
    invoke-static {p0}, Les/i20;->e(Ljava/lang/String;)J

    move-result-wide v6

    iput-wide v6, v3, Lcom/estrongs/fs/e;->i:J

    .line 74
    iput-boolean v5, v3, Lcom/estrongs/fs/e;->l:Z

    .line 75
    iput-boolean v2, v3, Lcom/estrongs/fs/e;->j:Z

    .line 76
    iput-boolean v2, v3, Lcom/estrongs/fs/e;->k:Z
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2
    .catchall {:try_start_3 .. :try_end_3} :catchall_0

    if-eqz v0, :cond_b

    .line 77
    :try_start_4
    invoke-interface {v0}, Les/lp0;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_1

    :catch_1
    :cond_b
    return-object v3

    :catchall_0
    move-exception p0

    move-object v1, v0

    goto :goto_6

    :catch_2
    move-exception p0

    move-object v1, v0

    goto :goto_5

    :catchall_1
    move-exception p0

    goto :goto_6

    :catch_3
    move-exception p0

    .line 78
    :goto_5
    :try_start_5
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    :goto_6
    if-eqz v1, :cond_c

    .line 79
    :try_start_6
    invoke-interface {v1}, Les/lp0;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_4

    .line 80
    :catch_4
    :cond_c
    goto :goto_8

    :goto_7
    throw p0

    :goto_8
    goto :goto_7
.end method

.method private static b(Landroid/bluetooth/BluetoothDevice;)Lcom/estrongs/fs/l;
    .locals 3

    .line 32
    invoke-virtual {p0}, Landroid/bluetooth/BluetoothDevice;->getBluetoothClass()Landroid/bluetooth/BluetoothClass;

    move-result-object v0

    if-nez v0, :cond_0

    .line 33
    sget-object p0, Lcom/estrongs/fs/l;->p:Lcom/estrongs/fs/l;

    return-object p0

    .line 34
    :cond_0
    invoke-virtual {v0}, Landroid/bluetooth/BluetoothClass;->getMajorDeviceClass()I

    move-result v0

    const/16 v1, 0x100

    const/16 v2, 0xc

    if-eq v0, v1, :cond_4

    const/16 v1, 0x200

    if-eq v0, v1, :cond_2

    .line 35
    invoke-virtual {p0}, Landroid/bluetooth/BluetoothDevice;->getBondState()I

    move-result p0

    if-ne p0, v2, :cond_1

    .line 36
    sget-object p0, Lcom/estrongs/fs/l;->o:Lcom/estrongs/fs/l;

    return-object p0

    .line 37
    :cond_1
    sget-object p0, Lcom/estrongs/fs/l;->p:Lcom/estrongs/fs/l;

    return-object p0

    .line 38
    :cond_2
    invoke-virtual {p0}, Landroid/bluetooth/BluetoothDevice;->getBondState()I

    move-result p0

    if-ne p0, v2, :cond_3

    .line 39
    sget-object p0, Lcom/estrongs/fs/l;->m:Lcom/estrongs/fs/l;

    return-object p0

    .line 40
    :cond_3
    sget-object p0, Lcom/estrongs/fs/l;->n:Lcom/estrongs/fs/l;

    return-object p0

    .line 41
    :cond_4
    invoke-virtual {p0}, Landroid/bluetooth/BluetoothDevice;->getBondState()I

    move-result p0

    if-ne p0, v2, :cond_5

    .line 42
    sget-object p0, Lcom/estrongs/fs/l;->k:Lcom/estrongs/fs/l;

    return-object p0

    .line 43
    :cond_5
    sget-object p0, Lcom/estrongs/fs/l;->l:Lcom/estrongs/fs/l;

    return-object p0
.end method

.method private static b(Ljava/lang/String;Z)Les/sp0;
    .locals 9
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Ljava/io/IOException;
        }
    .end annotation

    .line 3
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->o(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    const/16 v0, 0xa0

    const/16 v1, 0xcb

    const/4 v2, 0x0

    const/4 v3, 0x0

    if-eqz p1, :cond_3

    .line 4
    sget-object v4, Les/i20;->h:Ljava/util/HashMap;

    invoke-virtual {v4, p0}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Les/sp0;

    if-eqz v4, :cond_4

    .line 5
    :try_start_0
    invoke-interface {v4}, Les/sp0;->d()Les/tp0;

    move-result-object v5

    .line 6
    sget-object v6, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v6, v4}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v6

    invoke-interface {v5, v1, v6}, Les/tp0;->a(ILjava/lang/Object;)V

    const/4 v6, 0x1

    .line 7
    invoke-interface {v4, v5, v6, v2}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v7

    const/4 v8, 0x0

    .line 8
    :goto_0
    invoke-interface {v7}, Les/tp0;->b()I

    move-result v7

    if-ne v7, v0, :cond_0

    const/16 v7, 0x28

    if-ge v8, v7, :cond_0

    .line 9
    invoke-interface {v4, v5, v6, v2}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v7
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    add-int/lit8 v8, v8, 0x1

    goto :goto_0

    :cond_0
    return-object v4

    :catch_0
    move-exception v5

    .line 10
    invoke-virtual {v5}, Ljava/io/IOException;->getMessage()Ljava/lang/String;

    move-result-object v6

    if-eqz v6, :cond_2

    const-string v7, "not connected"

    .line 11
    invoke-virtual {v6, v7}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v7

    if-nez v7, :cond_1

    const-string v7, "connection abort"

    invoke-virtual {v6, v7}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v7

    if-nez v7, :cond_1

    const-string v7, "connect"

    .line 12
    invoke-virtual {v6, v7}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v7

    if-nez v7, :cond_1

    const-string v7, "Connect"

    invoke-virtual {v6, v7}, Ljava/lang/String;->contains(Ljava/lang/CharSequence;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 13
    :cond_1
    invoke-interface {v4}, Les/lp0;->close()V

    .line 14
    sget-object v5, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v5, v4}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    .line 15
    sget-object v5, Les/i20;->h:Ljava/util/HashMap;

    invoke-virtual {v5, p0}, Ljava/util/HashMap;->remove(Ljava/lang/Object;)Ljava/lang/Object;

    goto :goto_1

    .line 16
    :cond_2
    throw v5

    :cond_3
    move-object v4, v3

    .line 17
    :cond_4
    :goto_1
    :try_start_1
    sget-object v5, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v5}, Landroid/bluetooth/BluetoothAdapter;->isDiscovering()Z

    move-result v5

    if-eqz v5, :cond_5

    .line 18
    sget-object v5, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v5}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_2

    :cond_5
    :goto_2
    const/4 v5, 0x3

    if-ge v2, v5, :cond_6

    add-int/lit8 v4, v2, 0x4

    mul-int/lit16 v4, v4, 0xc8

    int-to-long v4, v4

    .line 19
    :try_start_2
    invoke-static {v4, v5}, Les/i20;->a(J)V

    .line 20
    sget-object v4, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    .line 21
    invoke-virtual {v4, p0}, Landroid/bluetooth/BluetoothAdapter;->getRemoteDevice(Ljava/lang/String;)Landroid/bluetooth/BluetoothDevice;

    move-result-object v4

    .line 22
    sget-object v5, Les/i20;->k:Ljava/util/UUID;

    invoke-static {v4, v5}, Les/c10;->a(Landroid/bluetooth/BluetoothDevice;Ljava/util/UUID;)Les/sp0;

    move-result-object v4
    :try_end_2
    .catch Ljava/lang/Exception; {:try_start_2 .. :try_end_2} :catch_1

    goto :goto_3

    :catch_1
    add-int/lit8 v2, v2, 0x1

    move-object v4, v3

    goto :goto_2

    :cond_6
    :goto_3
    if-nez v4, :cond_7

    return-object v3

    .line 23
    :cond_7
    :try_start_3
    invoke-interface {v4}, Les/sp0;->d()Les/tp0;

    move-result-object v2

    const/16 v5, 0x46

    .line 24
    sget-object v6, Les/i20;->l:[B

    invoke-interface {v2, v5, v6}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 25
    invoke-interface {v4, v2}, Les/sp0;->d(Les/tp0;)Les/tp0;

    move-result-object v2

    if-eqz v2, :cond_9

    .line 26
    invoke-interface {v2}, Les/tp0;->b()I

    move-result v5

    if-eq v5, v0, :cond_8

    return-object v3

    .line 27
    :cond_8
    invoke-interface {v2, v1}, Les/tp0;->a(I)Ljava/lang/Object;

    move-result-object v0

    if-eqz v0, :cond_9

    .line 28
    move-object v1, v0

    check-cast v1, Ljava/lang/Long;

    invoke-virtual {v1}, Ljava/lang/Long;->longValue()J

    move-result-wide v1

    invoke-interface {v4, v1, v2}, Les/sp0;->a(J)V

    .line 29
    sget-object v1, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v1, v4, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_2

    :cond_9
    if-eqz p1, :cond_a

    .line 30
    sget-object p1, Les/i20;->h:Ljava/util/HashMap;

    invoke-virtual {p1, p0, v4}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    :cond_a
    return-object v4

    :catch_2
    move-exception p0

    .line 31
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V

    return-object v3
.end method

.method private static b(Landroid/content/Context;Landroid/bluetooth/BluetoothDevice;)Ljava/lang/String;
    .locals 1

    .line 85
    invoke-virtual {p1}, Landroid/bluetooth/BluetoothDevice;->getBluetoothClass()Landroid/bluetooth/BluetoothClass;

    move-result-object p1

    const-string v0, ""

    if-nez p1, :cond_0

    return-object v0

    .line 86
    :cond_0
    invoke-virtual {p1}, Landroid/bluetooth/BluetoothClass;->getMajorDeviceClass()I

    move-result p1

    sparse-switch p1, :sswitch_data_0

    goto/16 :goto_0

    :sswitch_0
    const p1, 0x7f1101d4

    .line 87
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto/16 :goto_0

    :sswitch_1
    const p1, 0x7f1101ce

    .line 88
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_2
    const p1, 0x7f1101d3

    .line 89
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_3
    const p1, 0x7f1101d5

    .line 90
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_4
    const p1, 0x7f1101cf

    .line 91
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_5
    const p1, 0x7f1101d2

    .line 92
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_6
    const p1, 0x7f1101cc

    .line 93
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_7
    const p1, 0x7f1101d1

    .line 94
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_8
    const p1, 0x7f110602

    .line 95
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_9
    const p1, 0x7f1101cd

    .line 96
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    goto :goto_0

    :sswitch_a
    const p1, 0x7f1101d0

    .line 97
    invoke-virtual {p0, p1}, Landroid/content/Context;->getText(I)Ljava/lang/CharSequence;

    move-result-object p0

    invoke-interface {p0}, Ljava/lang/CharSequence;->toString()Ljava/lang/String;

    move-result-object v0

    :goto_0
    return-object v0

    nop

    :sswitch_data_0
    .sparse-switch
        0x0 -> :sswitch_a
        0x100 -> :sswitch_9
        0x200 -> :sswitch_8
        0x300 -> :sswitch_7
        0x400 -> :sswitch_6
        0x500 -> :sswitch_5
        0x600 -> :sswitch_4
        0x700 -> :sswitch_3
        0x800 -> :sswitch_2
        0x900 -> :sswitch_1
        0x1f00 -> :sswitch_0
    .end sparse-switch
.end method

.method public static b(Landroid/content/Context;Ljava/lang/String;)Ljava/lang/String;
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 98
    :try_start_0
    invoke-static {p1}, Lcom/estrongs/android/util/h0;->o(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p1

    .line 99
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0, p1}, Landroid/bluetooth/BluetoothAdapter;->getRemoteDevice(Ljava/lang/String;)Landroid/bluetooth/BluetoothDevice;

    move-result-object p1

    .line 100
    invoke-static {p0, p1}, Les/i20;->b(Landroid/content/Context;Landroid/bluetooth/BluetoothDevice;)Ljava/lang/String;

    move-result-object p0
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    return-object p0

    :catch_0
    move-exception p0

    .line 101
    new-instance p1, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {p1, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw p1
.end method

.method static synthetic b()Ljava/util/List;
    .locals 1

    .line 1
    sget-object v0, Les/i20;->e:Ljava/util/List;

    return-object v0
.end method

.method public static b(Landroid/content/Context;)V
    .locals 2

    .line 81
    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "android.bluetooth.device.action.FOUND"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 82
    sget-object v1, Les/i20;->n:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    .line 83
    new-instance v0, Landroid/content/IntentFilter;

    const-string v1, "android.bluetooth.adapter.action.DISCOVERY_FINISHED"

    invoke-direct {v0, v1}, Landroid/content/IntentFilter;-><init>(Ljava/lang/String;)V

    .line 84
    sget-object v1, Les/i20;->n:Landroid/content/BroadcastReceiver;

    invoke-virtual {p0, v1, v0}, Landroid/content/Context;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    return-void
.end method

.method static synthetic b(Les/i20;)V
    .locals 0

    .line 2
    invoke-direct {p0}, Les/i20;->i()V

    return-void
.end method

.method public static c(Ljava/lang/String;)Ljava/io/InputStream;
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 11
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    .line 12
    :try_start_0
    invoke-static {p0, v1}, Les/i20;->b(Ljava/lang/String;Z)Les/sp0;

    move-result-object v2

    const/4 v3, 0x0

    if-nez v2, :cond_0

    return-object v3

    .line 13
    :cond_0
    invoke-static {v0}, Les/i20;->i(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_7

    .line 14
    array-length v4, v0

    if-nez v4, :cond_1

    goto :goto_2

    .line 15
    :cond_1
    invoke-interface {v2}, Les/sp0;->d()Les/tp0;

    move-result-object v4

    .line 16
    sget-object v5, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v5, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    const/16 v6, 0xcb

    invoke-interface {v4, v6, v5}, Les/tp0;->a(ILjava/lang/Object;)V

    const/4 v5, 0x0

    const/4 v7, 0x0

    .line 17
    :goto_0
    array-length v8, v0

    sub-int/2addr v8, v1

    if-ge v7, v8, :cond_4

    .line 18
    aget-object v8, v0, v7

    if-eqz v8, :cond_3

    aget-object v8, v0, v7

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    if-nez v8, :cond_2

    goto :goto_1

    .line 19
    :cond_2
    aget-object v8, v0, v7

    invoke-interface {v4, v1, v8}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 20
    invoke-interface {v2, v4, v5, v5}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v8

    .line 21
    invoke-interface {v8}, Les/tp0;->b()I

    move-result v8

    const/16 v9, 0xa0

    if-eq v8, v9, :cond_3

    return-object v3

    :cond_3
    :goto_1
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    .line 22
    :cond_4
    invoke-interface {v2}, Les/sp0;->d()Les/tp0;

    move-result-object v4

    .line 23
    sget-object v5, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v5, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    invoke-interface {v4, v6, v5}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 24
    array-length v5, v0

    sub-int/2addr v5, v1

    aget-object v0, v0, v5

    invoke-interface {v4, v1, v0}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 25
    invoke-interface {v2, v4}, Les/sp0;->c(Les/tp0;)Les/up0;

    move-result-object v0

    if-nez v0, :cond_5

    return-object v3

    :cond_5
    if-eqz v0, :cond_6

    .line 26
    sget-object v1, Les/i20;->j:Ljava/util/HashMap;

    invoke-virtual {v1, p0, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;

    .line 27
    :cond_6
    new-instance p0, Ljava/io/BufferedInputStream;

    new-instance v1, Les/l20;

    invoke-interface {v0}, Les/np0;->e()Ljava/io/DataInputStream;

    move-result-object v2

    invoke-direct {v1, v2, v0}, Les/l20;-><init>(Ljava/io/InputStream;Les/up0;)V

    invoke-direct {p0, v1}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    return-object p0

    :cond_7
    :goto_2
    return-object v3

    :catchall_0
    move-exception p0

    goto :goto_3

    :catch_0
    move-exception p0

    .line 28
    :try_start_1
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 29
    :goto_3
    goto :goto_5

    :goto_4
    throw p0

    :goto_5
    goto :goto_4
.end method

.method public static c()V
    .locals 1

    .line 30
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->isDiscovering()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 31
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z

    :cond_0
    const/4 v0, 0x0

    .line 32
    sput-boolean v0, Les/i20;->f:Z

    return-void
.end method

.method public static c(Landroid/content/Context;)V
    .locals 2

    .line 1
    sget-object p0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    if-eqz p0, :cond_2

    invoke-virtual {p0}, Landroid/bluetooth/BluetoothAdapter;->isEnabled()Z

    move-result p0

    if-nez p0, :cond_0

    goto :goto_1

    :cond_0
    const/4 p0, 0x1

    .line 2
    sput-boolean p0, Les/i20;->m:Z

    .line 3
    sget-object p0, Les/i20;->e:Ljava/util/List;

    invoke-interface {p0}, Ljava/util/List;->clear()V

    .line 4
    invoke-static {}, Les/i20;->e()V

    .line 5
    invoke-static {}, Les/s80;->A()Les/s80;

    move-result-object p0

    .line 6
    :goto_0
    sget-boolean v0, Les/i20;->f:Z

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Les/s80;->z()Z

    move-result v0

    if-nez v0, :cond_1

    const-wide/16 v0, 0xc8

    .line 7
    :try_start_0
    invoke-static {v0, v1}, Ljava/lang/Thread;->sleep(J)V
    :try_end_0
    .catch Ljava/lang/InterruptedException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    nop

    :cond_1
    const/4 v0, 0x0

    .line 8
    sput-boolean v0, Les/i20;->m:Z

    .line 9
    invoke-virtual {p0}, Les/s80;->z()Z

    move-result p0

    if-eqz p0, :cond_2

    .line 10
    invoke-static {}, Les/i20;->c()V

    :cond_2
    :goto_1
    return-void
.end method

.method private static c(Landroid/bluetooth/BluetoothDevice;)Z
    .locals 1

    .line 33
    invoke-virtual {p0}, Landroid/bluetooth/BluetoothDevice;->getBluetoothClass()Landroid/bluetooth/BluetoothClass;

    move-result-object p0

    if-eqz p0, :cond_0

    const/high16 v0, 0x100000

    .line 34
    invoke-virtual {p0, v0}, Landroid/bluetooth/BluetoothClass;->hasService(I)Z

    move-result p0

    if-eqz p0, :cond_0

    const/4 p0, 0x1

    return p0

    :cond_0
    const/4 p0, 0x0

    return p0
.end method

.method public static d(Ljava/lang/String;)J
    .locals 2

    .line 4
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p0

    invoke-interface {p0}, Lcom/estrongs/fs/g;->length()J

    move-result-wide v0
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const-wide/16 v0, 0x0

    :goto_0
    return-wide v0
.end method

.method public static d()V
    .locals 1

    .line 1
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    if-eqz v0, :cond_1

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->isEnabled()Z

    move-result v0

    if-nez v0, :cond_0

    goto :goto_0

    .line 2
    :cond_0
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->isDiscovering()Z

    move-result v0

    if-eqz v0, :cond_1

    .line 3
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z

    :cond_1
    :goto_0
    return-void
.end method

.method public static e(Ljava/lang/String;)J
    .locals 2

    .line 1
    :try_start_0
    invoke-static {}, Lcom/estrongs/fs/f;->d()Lcom/estrongs/fs/f;

    move-result-object v0

    invoke-virtual {v0, p0}, Lcom/estrongs/fs/f;->g(Ljava/lang/String;)Lcom/estrongs/fs/g;

    move-result-object p0

    invoke-interface {p0}, Lcom/estrongs/fs/g;->lastModified()J

    move-result-wide v0
    :try_end_0
    .catch Ljava/lang/NullPointerException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    const-wide/16 v0, 0x0

    :goto_0
    return-wide v0
.end method

.method private static e()V
    .locals 1

    .line 2
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->isDiscovering()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 3
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z

    :cond_0
    const/4 v0, 0x1

    .line 4
    sput-boolean v0, Les/i20;->f:Z

    .line 5
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->startDiscovery()Z

    return-void
.end method

.method public static f(Ljava/lang/String;)Lcom/estrongs/fs/g;
    .locals 10

    .line 2
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    const/4 v1, 0x0

    if-eqz v0, :cond_10

    invoke-virtual {v0}, Landroid/bluetooth/BluetoothAdapter;->isEnabled()Z

    move-result v0

    if-nez v0, :cond_0

    goto/16 :goto_7

    .line 3
    :cond_0
    sget-object v0, Les/i20;->g:Lcom/estrongs/bluetooth/parser/a;

    if-nez v0, :cond_1

    .line 4
    new-instance v0, Lcom/estrongs/bluetooth/parser/a;

    invoke-direct {v0}, Lcom/estrongs/bluetooth/parser/a;-><init>()V

    sput-object v0, Les/i20;->g:Lcom/estrongs/bluetooth/parser/a;

    .line 5
    :cond_1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    invoke-static {v0}, Lcom/estrongs/android/util/h0;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    .line 6
    :try_start_0
    sget-object v2, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v2}, Landroid/bluetooth/BluetoothAdapter;->isDiscovering()Z

    move-result v2

    if-eqz v2, :cond_2

    .line 7
    sget-object v2, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v2}, Landroid/bluetooth/BluetoothAdapter;->cancelDiscovery()Z

    .line 8
    :cond_2
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->M(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v2

    const/4 v3, 0x1

    invoke-static {v2, v3}, Les/i20;->b(Ljava/lang/String;Z)Les/sp0;

    move-result-object v2

    if-nez v2, :cond_3

    return-object v1

    .line 9
    :cond_3
    invoke-interface {v2}, Les/sp0;->d()Les/tp0;

    move-result-object v4

    .line 10
    sget-object v5, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v5, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    const/16 v6, 0xcb

    invoke-interface {v4, v6, v5}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 11
    invoke-static {v0}, Les/i20;->i(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    const/4 v5, 0x0

    const/4 v7, 0x0

    .line 12
    :goto_0
    array-length v8, v0

    const/16 v9, 0xa0

    if-ge v7, v8, :cond_6

    .line 13
    aget-object v8, v0, v7

    if-eqz v8, :cond_5

    aget-object v8, v0, v7

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    if-nez v8, :cond_4

    goto :goto_1

    .line 14
    :cond_4
    aget-object v8, v0, v7

    invoke-interface {v4, v3, v8}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 15
    invoke-interface {v2, v4, v5, v5}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v8

    .line 16
    invoke-interface {v8}, Les/tp0;->b()I

    move-result v8

    if-eq v8, v9, :cond_5

    return-object v1

    :cond_5
    :goto_1
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    .line 17
    :cond_6
    invoke-interface {v2}, Les/sp0;->d()Les/tp0;

    move-result-object v0

    .line 18
    sget-object v3, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v3, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v3

    invoke-interface {v0, v6, v3}, Les/tp0;->a(ILjava/lang/Object;)V

    const/16 v3, 0x42

    const-string v4, "x-obex/folder-listing"

    .line 19
    invoke-interface {v0, v3, v4}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 20
    invoke-interface {v2, v0}, Les/sp0;->c(Les/tp0;)Les/up0;

    move-result-object v3
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_3
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v3, :cond_c

    .line 21
    :try_start_1
    invoke-interface {v3}, Les/up0;->b()I

    move-result v4

    if-eq v4, v9, :cond_7

    goto :goto_3

    .line 22
    :cond_7
    invoke-interface {v3}, Les/up0;->f()Les/tp0;

    move-result-object v4

    const/16 v5, 0x49

    .line 23
    invoke-interface {v4, v5}, Les/tp0;->a(I)Ljava/lang/Object;

    move-result-object v4

    if-eqz v4, :cond_8

    .line 24
    invoke-interface {v2, v0}, Les/sp0;->c(Les/tp0;)Les/up0;

    move-result-object v3

    .line 25
    :cond_8
    new-instance v0, Ljava/io/BufferedInputStream;

    .line 26
    invoke-interface {v3}, Les/np0;->e()Ljava/io/DataInputStream;

    move-result-object v2

    const/16 v4, 0x2000

    invoke-direct {v0, v2, v4}, Ljava/io/BufferedInputStream;-><init>(Ljava/io/InputStream;I)V

    .line 27
    sget-object v2, Les/i20;->g:Lcom/estrongs/bluetooth/parser/a;

    invoke-virtual {v2, v0}, Lcom/estrongs/bluetooth/parser/a;->a(Ljava/io/InputStream;)Ljava/util/ArrayList;

    move-result-object v2

    .line 28
    invoke-virtual {v0}, Ljava/io/BufferedInputStream;->close()V

    .line 29
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->y(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    if-eqz v2, :cond_b

    .line 30
    invoke-virtual {v2}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :cond_9
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v4

    if-eqz v4, :cond_b

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v4

    check-cast v4, Lcom/estrongs/bluetooth/parser/OBEXElement;

    .line 31
    invoke-virtual {v4}, Lcom/estrongs/bluetooth/parser/OBEXElement;->d()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v5, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    if-eqz v5, :cond_9

    .line 32
    new-instance v0, Les/j20;

    invoke-direct {v0, v4, p0}, Les/j20;-><init>(Lcom/estrongs/bluetooth/parser/OBEXElement;Ljava/lang/String;)V
    :try_end_1
    .catch Ljava/io/IOException; {:try_start_1 .. :try_end_1} :catch_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_1

    if-eqz v3, :cond_a

    .line 33
    :try_start_2
    invoke-interface {v3}, Les/lp0;->close()V
    :try_end_2
    .catch Ljava/io/IOException; {:try_start_2 .. :try_end_2} :catch_0

    :catch_0
    :cond_a
    return-object v0

    :cond_b
    if-eqz v3, :cond_e

    :goto_2
    :try_start_3
    invoke-interface {v3}, Les/lp0;->close()V
    :try_end_3
    .catch Ljava/io/IOException; {:try_start_3 .. :try_end_3} :catch_4

    goto :goto_5

    :catch_1
    move-exception p0

    goto :goto_4

    :cond_c
    :goto_3
    if-eqz v3, :cond_d

    :try_start_4
    invoke-interface {v3}, Les/lp0;->close()V
    :try_end_4
    .catch Ljava/io/IOException; {:try_start_4 .. :try_end_4} :catch_2

    :catch_2
    :cond_d
    return-object v1

    :catchall_0
    move-exception p0

    goto :goto_6

    :catch_3
    move-exception p0

    move-object v3, v1

    .line 34
    :goto_4
    :try_start_5
    invoke-virtual {p0}, Ljava/io/IOException;->printStackTrace()V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_1

    if-eqz v3, :cond_e

    goto :goto_2

    :catch_4
    :cond_e
    :goto_5
    return-object v1

    :catchall_1
    move-exception p0

    move-object v1, v3

    :goto_6
    if-eqz v1, :cond_f

    .line 35
    :try_start_6
    invoke-interface {v1}, Les/lp0;->close()V
    :try_end_6
    .catch Ljava/io/IOException; {:try_start_6 .. :try_end_6} :catch_5

    .line 36
    :catch_5
    :cond_f
    throw p0

    :cond_10
    :goto_7
    return-object v1
.end method

.method public static f()Ljava/util/List;
    .locals 1
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "()",
            "Ljava/util/List<",
            "Lcom/estrongs/fs/g;",
            ">;"
        }
    .end annotation

    .line 1
    sget-object v0, Les/i20;->e:Ljava/util/List;

    return-object v0
.end method

.method private static g(Ljava/lang/String;)Lcom/estrongs/fs/l;
    .locals 1

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->o(Ljava/lang/String;)Ljava/lang/String;

    move-result-object p0

    .line 2
    sget-object v0, Les/i20;->d:Landroid/bluetooth/BluetoothAdapter;

    invoke-virtual {v0, p0}, Landroid/bluetooth/BluetoothAdapter;->getRemoteDevice(Ljava/lang/String;)Landroid/bluetooth/BluetoothDevice;

    move-result-object p0

    .line 3
    invoke-static {p0}, Les/i20;->b(Landroid/bluetooth/BluetoothDevice;)Lcom/estrongs/fs/l;

    move-result-object p0

    return-object p0
.end method

.method public static g()Z
    .locals 1

    .line 4
    sget-boolean v0, Les/i20;->m:Z

    return v0
.end method

.method public static h(Ljava/lang/String;)Ljava/io/OutputStream;
    .locals 10
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    .line 1
    invoke-static {p0}, Lcom/estrongs/android/util/h0;->q(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    const/4 v1, 0x1

    .line 2
    :try_start_0
    invoke-static {p0, v1}, Les/i20;->b(Ljava/lang/String;Z)Les/sp0;

    move-result-object v2

    const/4 v3, 0x0

    if-nez v2, :cond_0

    return-object v3

    .line 3
    :cond_0
    invoke-static {v0}, Les/i20;->i(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object v0

    if-eqz v0, :cond_7

    .line 4
    array-length v4, v0

    if-nez v4, :cond_1

    goto/16 :goto_2

    .line 5
    :cond_1
    invoke-interface {v2}, Les/sp0;->d()Les/tp0;

    move-result-object v4

    .line 6
    sget-object v5, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v5, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    const/16 v6, 0xcb

    invoke-interface {v4, v6, v5}, Les/tp0;->a(ILjava/lang/Object;)V

    const/4 v5, 0x0

    const/4 v7, 0x0

    .line 7
    :goto_0
    array-length v8, v0

    sub-int/2addr v8, v1

    if-ge v7, v8, :cond_4

    .line 8
    aget-object v8, v0, v7

    if-eqz v8, :cond_3

    aget-object v8, v0, v7

    invoke-virtual {v8}, Ljava/lang/String;->length()I

    move-result v8

    if-nez v8, :cond_2

    goto :goto_1

    .line 9
    :cond_2
    aget-object v8, v0, v7

    invoke-interface {v4, v1, v8}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 10
    invoke-interface {v2, v4, v5, v5}, Les/sp0;->a(Les/tp0;ZZ)Les/tp0;

    move-result-object v8

    .line 11
    invoke-interface {v8}, Les/tp0;->b()I

    move-result v8

    const/16 v9, 0xa0

    if-eq v8, v9, :cond_3

    return-object v3

    :cond_3
    :goto_1
    add-int/lit8 v7, v7, 0x1

    goto :goto_0

    .line 12
    :cond_4
    invoke-interface {v2}, Les/sp0;->d()Les/tp0;

    move-result-object v4

    .line 13
    sget-object v5, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v5, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v5

    invoke-interface {v4, v6, v5}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 14
    array-length v5, v0

    sub-int/2addr v5, v1

    aget-object v0, v0, v5

    invoke-interface {v4, v1, v0}, Les/tp0;->a(ILjava/lang/Object;)V

    .line 15
    sget-object v0, Les/i20;->i:Ljava/util/HashMap;

    invoke-virtual {v0, v2}, Ljava/util/HashMap;->get(Ljava/lang/Object;)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/Long;

    invoke-virtual {v0}, Ljava/lang/Long;->longValue()J

    move-result-wide v0

    invoke-interface {v2, v0, v1}, Les/sp0;->a(J)V

    .line 16
    invoke-interface {v2, v4}, Les/sp0;->e(Les/tp0;)Les/up0;

    move-result-object v0

    if-nez v0, :cond_5

    return-object v3

    .line 17
    :cond_5
    new-instance v1, Ljava/io/BufferedOutputStream;

    new-instance v2, Les/m20;

    invoke-interface {v0}, Les/op0;->g()Ljava/io/DataOutputStream;

    move-result-object v3

    invoke-direct {v2, v3, v0}, Les/m20;-><init>(Ljava/io/OutputStream;Les/up0;)V

    invoke-direct {v1, v2}, Ljava/io/BufferedOutputStream;-><init>(Ljava/io/OutputStream;)V

    if-eqz v0, :cond_6

    .line 18
    sget-object v2, Les/i20;->j:Ljava/util/HashMap;

    invoke-virtual {v2, p0, v0}, Ljava/util/HashMap;->put(Ljava/lang/Object;Ljava/lang/Object;)Ljava/lang/Object;
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_6
    return-object v1

    :cond_7
    :goto_2
    return-object v3

    :catchall_0
    move-exception p0

    goto :goto_3

    :catch_0
    move-exception p0

    .line 19
    :try_start_1
    new-instance v0, Lcom/estrongs/fs/FileSystemException;

    invoke-direct {v0, p0}, Lcom/estrongs/fs/FileSystemException;-><init>(Ljava/lang/Throwable;)V

    throw v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    .line 20
    :goto_3
    goto :goto_5

    :goto_4
    throw p0

    :goto_5
    goto :goto_4
.end method

.method public static h()V
    .locals 3

    .line 21
    sget-boolean v0, Les/yt;->g:Z

    if-eqz v0, :cond_0

    return-void

    .line 22
    :cond_0
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    const-string v1, "android.bluetooth.adapter.action.STATE_CHANGED"

    .line 23
    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 24
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    if-eqz v1, :cond_1

    .line 25
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v1

    sget-object v2, Les/i20;->o:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v2, v0}, Landroid/app/Activity;->registerReceiver(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)Landroid/content/Intent;

    const/4 v0, 0x1

    .line 26
    sput-boolean v0, Les/yt;->g:Z

    :cond_1
    return-void
.end method

.method private i()V
    .locals 2

    .line 2
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 3
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    iget-object v1, p0, Les/i20;->a:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V

    :cond_0
    return-void
.end method

.method private static i(Ljava/lang/String;)[Ljava/lang/String;
    .locals 1

    const-string v0, "[/+]"

    .line 1
    invoke-virtual {p0, v0}, Ljava/lang/String;->split(Ljava/lang/String;)[Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static j()V
    .locals 2

    .line 2
    sget-boolean v0, Les/yt;->g:Z

    if-nez v0, :cond_0

    return-void

    .line 3
    :cond_0
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    if-eqz v0, :cond_1

    .line 4
    :try_start_0
    invoke-static {}, Lcom/estrongs/android/pop/view/FileExplorerActivity;->a1()Lcom/estrongs/android/pop/view/FileExplorerActivity;

    move-result-object v0

    sget-object v1, Les/i20;->o:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/app/Activity;->unregisterReceiver(Landroid/content/BroadcastReceiver;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    :catch_0
    move-exception v0

    .line 5
    invoke-virtual {v0}, Ljava/lang/Exception;->printStackTrace()V

    :goto_0
    const/4 v0, 0x0

    .line 6
    sput-boolean v0, Les/yt;->g:Z

    :cond_1
    return-void
.end method

.method public static j(Ljava/lang/String;)Z
    .locals 0

    .line 1
    invoke-static {p0}, Les/i20;->k(Ljava/lang/String;)Z

    move-result p0

    return p0
.end method

.method private static k(Ljava/lang/String;)Z
    .locals 2

    .line 1
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    const/4 v1, 0x1

    sub-int/2addr v0, v1

    invoke-virtual {p0, v0}, Ljava/lang/String;->charAt(I)C

    move-result p0

    const/16 v0, 0x2f

    if-ne p0, v0, :cond_0

    goto :goto_0

    :cond_0
    const/4 v1, 0x0

    :goto_0
    return v1
.end method

.method private static l(Ljava/lang/String;)Z
    .locals 1

    if-eqz p0, :cond_1

    .line 1
    invoke-virtual {p0}, Ljava/lang/String;->length()I

    move-result v0

    if-eqz v0, :cond_0

    const-string v0, "."

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-nez v0, :cond_0

    const-string v0, ".."

    invoke-virtual {p0, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result p0

    if-eqz p0, :cond_1

    :cond_0
    const/4 p0, 0x1

    return p0

    :cond_1
    const/4 p0, 0x0

    return p0
.end method

.method public static m(Ljava/lang/String;)Z
    .locals 1
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lcom/estrongs/fs/FileSystemException;
        }
    .end annotation

    const/4 v0, 0x1

    .line 1
    invoke-static {p0, v0}, Les/i20;->a(Ljava/lang/String;Z)Z

    move-result p0

    return p0
.end method
